package com.xy.breakfast.entity;

import java.math.BigDecimal;
import java.sql.Timestamp;

public class Cart implements java.io.Serializable{
    private int id;
    private int clientsId;
    private int foodsId;
    private int num;
    private BigDecimal price;
    private Timestamp createTime;

    //一对一外键
    public Foods foods;
    public Clients clients;
    public Products products;

    public Cart() {
    }

    public Cart(int id, int clientsId, int foodsId, int num, BigDecimal price, Timestamp createTime, Foods foods, Clients clients, Products products) {
        this.id = id;
        this.clientsId = clientsId;
        this.foodsId = foodsId;
        this.num = num;
        this.price = price;
        this.createTime = createTime;
        this.foods = foods;
        this.clients = clients;
        this.products = products;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getClientsId() {
        return clientsId;
    }

    public void setClientsId(int clientsId) {
        this.clientsId = clientsId;
    }

    public int getFoodsId() {
        return foodsId;
    }

    public void setFoodsId(int foodsId) {
        this.foodsId = foodsId;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Foods getFoods() {
        return foods;
    }

    public void setFoods(Foods foods) {
        this.foods = foods;
    }

    public Clients getClients() {
        return clients;
    }

    public void setClients(Clients clients) {
        this.clients = clients;
    }

    public Products getProducts() {
        return products;
    }

    public void setProducts(Products products) {
        this.products = products;
    }

}
